﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace WpfAppTest
{
    /// <summary>
    /// BookDemo.xaml 的交互逻辑
    /// </summary>
    public partial class BookDemo : Page, ISample
    {
        public BookDemo()
        {
            InitializeComponent();
        }

        private void btn_previous_Click(object sender, RoutedEventArgs e)
        {
            book.AnimateToPreviousPage(false, 1000);
        }

        private void btn_next_Click(object sender, RoutedEventArgs e)
        {
            book.AnimateToNextPage(true, 1000);

        }
    }
}
